package com.linkhub.oms.common.enums.mp;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.linkhub.oms.common.enums.IEnumConvert;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description: EmployeeBusinessStatusEnum
 * @Author: echo
 * @Date: 2024/3/28 17:08
 * @Version: 1.0
 */
@Getter
@AllArgsConstructor
public enum EmployeeOrderStatusEnum implements IEnumConvert<Integer> {

    // 员工订单状态：0-无状态;50-有货；55-无货；60-待预报；65-预报失败;70-待打印；71-打印失败；75-待推送；76-推送失败；80-待打包；85-已出库；90-已发货；95-已签收
    VOID(0, "无状态"),
    IN_STOCK(50, "有货"),
    OUT_OF_STOCK(55, "无货"),
    TO_BE_FORECAST(60, "待预报"),
    FORECAST_FAILURE(65, "预报失败"),
    TO_BE_PRINTED(70, "待打印"),
    PRINT_FAILURE(71, "打印失败"),
    TO_BE_PUSHED(75, "待推送"),
    PUSH_FAILURE(76, "推送失败"),
    TO_BE_PACKED(80, "待打包"),
    OUT_OF_STORAGE(85, "已出库"),
    DELIVERED(90, "已发货"),
    HAVE_BEEN_SIGNED(95, "已签收"),
    ;

    @EnumValue
    private final Integer code;
    private final String desc;
}
